package org.jsola.hr.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.vo.BaseTreeVO;

import java.util.Date;
import java.util.List;
import java.util.Map;

import static org.jsola.core.example.BaseExample.*;
import static org.jsola.notice.example.NoticeGroupExample.*;

/**
 * 通知分类
 *
 * @author wcl
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "【通知分类】列表展示对象")
@Data
public class HrNoticeGroupListVO extends BaseTreeVO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID)
    private Long id;

    @ApiModelProperty(notes = N_NAME, example = E_NAME)
    private String name;

    @ApiModelProperty(notes = N_MODULE_TYPE, example = E_MODULE_TYPE)
    private String moduleType;

    @ApiModelProperty(notes = N_DESC, example = E_DESC)
    private String desc;

    @ApiModelProperty(notes = N_PARENT_ID, example = E_PARENT_ID)
    private Long parentId;

    @ApiModelProperty(notes = N_SORT, example = E_SORT)
    private Long sort;

    @ApiModelProperty(notes = N_LEVEL, example = E_LEVEL)
    private Integer level;

    @ApiModelProperty(notes = N_GMT_CREATE, example = E_GMT_CREATE)
    private Date gmtCreate;

    @ApiModelProperty(notes = N_GMT_MODIFIED, example = E_GMT_MODIFIED)
    private Date gmtModified;

    @ApiModelProperty(notes = "当前通知分类下的通知类型")
    private List<HrNoticeTypeListVO> noticeTypeList;

    @ApiModelProperty(notes = "通知数量")
    private Integer count;

    @ApiModelProperty(notes = "通知发送方式是否可编辑")
    private Map<String, Boolean> wayTypeCanEdit;

}

